package com.leo.erp.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("tb_account_head")
public class AccountHead {
	@TableId(value = "accountHeadId", type = IdType.AUTO)
	private int accountHeadId;
	
	@TableField("type")
	private String type;//类型(支出/收入/收款/付款/转账)
	
	@TableField("organId")
	private int organId;//单位Id(收款/付款单位)
	
	@TableField("handsPersonId")
	private int handsPersonId;//经手人Id
	
	@TableField("changeAmount")
	private double changeAmount;//变动金额(优惠/收款/付款/实付)
	
	@TableField("totalPrice")
	private double totalPrice;//合计金额
	
	@TableField("accountId")
	private int accountId;//账户(收款/付款)
	
	@TableField("billNo")
	private String billNo;//单据编号
	
	@TableField("billTime")
	private Date billTime;//单据日期
	
	@TableField("remark")
	private String remark;//备注
	
	@TableField("tenantId")
	private int tenantId;//租户id
	
	@TableField("deleteFlag")
	private String deleteFlag;//删除标记，0未删除，1删除

	public int getAccountHeadId() {
		return accountHeadId;
	}

	public void setAccountHeadId(int accountHeadId) {
		this.accountHeadId = accountHeadId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type == null ? null : type.trim();
	}

	public int getOrganId() {
		return organId;
	}

	public void setOrganId(int organId) {
		this.organId = organId;
	}

	public int getHandsPersonId() {
		return handsPersonId;
	}

	public void setHandsPersonId(int handsPersonId) {
		this.handsPersonId = handsPersonId;
	}

	public double getChangeAmount() {
		return changeAmount;
	}

	public void setChangeAmount(double changeAmount) {
		this.changeAmount = changeAmount;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public int getAccountId() {
		return accountId;
	}

	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}

	public String getBillNo() {
		return billNo;
	}

	public void setBillNo(String billNo) {
		this.billNo = billNo == null ? null : billNo.trim();
	}

	public Date getBillTime() {
		return billTime;
	}

	public void setBillTime(Date billTime) {
		this.billTime = billTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public int getTenantId() {
		return tenantId;
	}

	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
	}
	
	
}
